import request from '@/utils/request'

// 查询任务分配历史列表
export function listAssignments(query) {
  return request({
    url: '/hanyun/assignments/list',
    method: 'get',
    params: query
  })
}

// 查询任务分配历史详细
export function getAssignments(id) {
  return request({
    url: '/hanyun/assignments/' + id,
    method: 'get'
  })
}

// 新增任务分配历史
export function addAssignments(data) {
  return request({
    url: '/hanyun/assignments',
    method: 'post',
    data: data
  })
}

// 修改任务分配历史
export function updateAssignments(data) {
  return request({
    url: '/hanyun/assignments',
    method: 'put',
    data: data
  })
}

// 删除任务分配历史
export function delAssignments(id) {
  return request({
    url: '/hanyun/assignments/' + id,
    method: 'delete'
  })
}
